<!--
  ~ Copyright 2018 Alibaba Group.
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~     http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc (version 1.7.0_79) on Fri Sep 11 11:58:17 CST 2015 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Task.ProjectBuilder</title>
<meta name="date" content="2015-09-11">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="Task.ProjectBuilder";
    }
//-->
</script>
<noscript>
<div>您的浏览器已禁用 JavaScript。</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!--   -->
</a><a href="#skip-navbar_top" title="跳过导航链接"></a><a name="navbar_top_firstrow">
<!--   -->
</a>
<ul class="navList" title="导航">
<li><a href="../../../../com/tmall/wireless/alpha/package-summary.html">程序包</a></li>
<li class="navBarCell1Rev">类</li>
<li><a href="package-tree.html">树</a></li>
<li><a href="../../../../deprecated-list.html">已过时</a></li>
<li><a href="../../../../index-files/index-1.html">索引</a></li>
<li><a href="../../../../help-doc.html">帮助</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../com/tmall/wireless/alpha/Task.OnFinishedListener.html" title="com.tmall.wireless.alpha中的接口"><span class="strong">上一个类</span></a></li>
<li>下一个类</li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?com/tmall/wireless/alpha/Task.ProjectBuilder.html" target="_top">框架</a></li>
<li><a href="Task.ProjectBuilder.html" target="_top">无框架</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">所有类</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>概要:&nbsp;</li>
<li>嵌套&nbsp;|&nbsp;</li>
<li>字段&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">构造器</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">方法</a></li>
</ul>
<ul class="subNavList">
<li>详细资料:&nbsp;</li>
<li>字段&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">构造器</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">方法</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">com.tmall.wireless.alpha</div>
<h2 title="类 Task.ProjectBuilder" class="title">类 Task.ProjectBuilder</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>com.alibaba.android.alpha.Task.ProjectBuilder</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>封闭类:</dt>
<dd><a href="../../../../com/tmall/wireless/alpha/Task.html" title="com.tmall.wireless.alpha中的类">Task</a></dd>
</dl>
<hr>
<br>
<pre>public static class <span class="strong">Task.ProjectBuilder</span>
extends java.lang.Object</pre>
<div class="block"><p>通过<code>ProjectBuilder</code>将多个<code>Task</code>组成一个<code>Project</code>。它可以单独拿出去执行，也可以作为
 一个子<code>Task</code>嵌入到另外一个<code>Project</code>中。</p></div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!--   -->
</a>
<h3>构造器概要</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="构造器概要表, 列表构造器和解释">
<caption><span>构造器</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">构造器和说明</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../com/tmall/wireless/alpha/Task.ProjectBuilder.html#Task.ProjectBuilder()">Task.ProjectBuilder</a></strong>()</code>
<div class="block">构建<code>ProjectBuilder</code>实例。</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!--   -->
</a>
<h3>方法概要</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="方法概要表, 列表方法和解释">
<caption><span>方法</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">限定符和类型</th>
<th class="colLast" scope="col">方法和说明</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/tmall/wireless/alpha/Task.ProjectBuilder.html" title="com.tmall.wireless.alpha中的类">Task.ProjectBuilder</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/tmall/wireless/alpha/Task.ProjectBuilder.html#add(com.tmall.wireless.alpha.Task)">add</a></strong>(<a href="../../../../com/tmall/wireless/alpha/Task.html" title="com.tmall.wireless.alpha中的类">Task</a>&nbsp;task)</code>
<div class="block">增加一个<code>Task</code>，在调用该方法后，需要调用<a href="../../../../com/tmall/wireless/alpha/Task.ProjectBuilder.html#after(com.tmall.wireless.alpha.Task)"><code>after(Task)</code></a>来确定。</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/tmall/wireless/alpha/Task.ProjectBuilder.html" title="com.tmall.wireless.alpha中的类">Task.ProjectBuilder</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/tmall/wireless/alpha/Task.ProjectBuilder.html#addNotWait(com.tmall.wireless.alpha.Task)">addNotWait</a></strong>(<a href="../../../../com/tmall/wireless/alpha/Task.html" title="com.tmall.wireless.alpha中的类">Task</a>&nbsp;task)</code>
<div class="block">如果存在一个<code>Task</code>，他的执行情况并不影响整个<code>Project</code>的执行结果，即只要其他<code>Task</code>
 执行完了，就算他没有执行完，<code>Project</code>也算执行完成了。</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/tmall/wireless/alpha/Task.ProjectBuilder.html" title="com.tmall.wireless.alpha中的类">Task.ProjectBuilder</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/tmall/wireless/alpha/Task.ProjectBuilder.html#after(com.tmall.wireless.alpha.Task...)">after</a></strong>(<a href="../../../../com/tmall/wireless/alpha/Task.html" title="com.tmall.wireless.alpha中的类">Task</a>...&nbsp;tasks)</code>
<div class="block">指定紧前<code>Task</code>，必须这些<code>Task</code>执行完才能执行自己。</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/tmall/wireless/alpha/Task.ProjectBuilder.html" title="com.tmall.wireless.alpha中的类">Task.ProjectBuilder</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/tmall/wireless/alpha/Task.ProjectBuilder.html#after(com.tmall.wireless.alpha.Task)">after</a></strong>(<a href="../../../../com/tmall/wireless/alpha/Task.html" title="com.tmall.wireless.alpha中的类">Task</a>&nbsp;task)</code>
<div class="block">指定紧前<code>Task</code>，必须该<code>Task</code>执行完才能执行自己。</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/tmall/wireless/alpha/Task.html" title="com.tmall.wireless.alpha中的类">Task</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/tmall/wireless/alpha/Task.ProjectBuilder.html#create()">create</a></strong>()</code>
<div class="block">创建一个<code>Project</code>实例。</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/tmall/wireless/alpha/Task.ProjectBuilder.html" title="com.tmall.wireless.alpha中的类">Task.ProjectBuilder</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/tmall/wireless/alpha/Task.ProjectBuilder.html#setOnFinishListener(com.tmall.wireless.alpha.Task.OnFinishedListener)">setOnFinishListener</a></strong>(<a href="../../../../com/tmall/wireless/alpha/Task.OnFinishedListener.html" title="com.tmall.wireless.alpha中的接口">Task.OnFinishedListener</a>&nbsp;listener)</code>
<div class="block">设置<code>Project</code>执行结束的监听。</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/tmall/wireless/alpha/Task.ProjectBuilder.html" title="com.tmall.wireless.alpha中的类">Task.ProjectBuilder</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/tmall/wireless/alpha/Task.ProjectBuilder.html#setProjectName(java.lang.String)">setProjectName</a></strong>(java.lang.String&nbsp;name)</code>
<div class="block">设置<code>Project</code>的名称。</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!--   -->
</a>
<h3>从类继承的方法&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!--   -->
</a>
<h3>构造器详细资料</h3>
<a name="Task.ProjectBuilder()">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Task.ProjectBuilder</h4>
<pre>public&nbsp;Task.ProjectBuilder()</pre>
<div class="block">构建<code>ProjectBuilder</code>实例。</div>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!--   -->
</a>
<h3>方法详细资料</h3>
<a name="create()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>create</h4>
<pre>public&nbsp;<a href="../../../../com/tmall/wireless/alpha/Task.html" title="com.tmall.wireless.alpha中的类">Task</a>&nbsp;create()</pre>
<div class="block">创建一个<code>Project</code>实例。</div>
<dl><dt><span class="strong">返回:</span></dt><dd><code>Project</code>，可以直接执行，也可以作为<code>Task</code>嵌入到其他<code>Project</code>中。</dd></dl>
</li>
</ul>
<a name="setOnFinishListener(com.alibaba.android.alpha.Task.OnFinishedListener)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setOnFinishListener</h4>
<pre>public&nbsp;<a href="../../../../com/tmall/wireless/alpha/Task.ProjectBuilder.html" title="com.tmall.wireless.alpha中的类">Task.ProjectBuilder</a>&nbsp;setOnFinishListener(<a href="../../../../com/tmall/wireless/alpha/Task.OnFinishedListener.html" title="com.tmall.wireless.alpha中的接口">Task.OnFinishedListener</a>&nbsp;listener)</pre>
<div class="block">设置<code>Project</code>执行结束的监听。</div>
<dl><dt><span class="strong">参数:</span></dt><dd><code>listener</code> - <code>Project</code>执行结束的监听</dd>
<dt><span class="strong">返回:</span></dt><dd><code>Builder</code>对象，可以继续添加属性或者组装<code>Task</code>。</dd></dl>
</li>
</ul>
<a name="setProjectName(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setProjectName</h4>
<pre>public&nbsp;<a href="../../../../com/tmall/wireless/alpha/Task.ProjectBuilder.html" title="com.tmall.wireless.alpha中的类">Task.ProjectBuilder</a>&nbsp;setProjectName(java.lang.String&nbsp;name)</pre>
<div class="block">设置<code>Project</code>的名称。</div>
<dl><dt><span class="strong">参数:</span></dt><dd><code>name</code> - <code>Project</code>的名称。</dd>
<dt><span class="strong">返回:</span></dt><dd><code>Builder</code>对象，可以继续添加属性或者组装<code>Task</code>。</dd></dl>
</li>
</ul>
<a name="add(com.tmall.wireless.alpha.Task)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>add</h4>
<pre>public&nbsp;<a href="../../../../com/tmall/wireless/alpha/Task.ProjectBuilder.html" title="com.tmall.wireless.alpha中的类">Task.ProjectBuilder</a>&nbsp;add(<a href="../../../../com/tmall/wireless/alpha/Task.html" title="com.tmall.wireless.alpha中的类">Task</a>&nbsp;task)</pre>
<div class="block">增加一个<code>Task</code>，在调用该方法后，需要调用<a href="../../../../com/tmall/wireless/alpha/Task.ProjectBuilder.html#after(com.tmall.wireless.alpha.Task)"><code>after(Task)</code></a>来确定。
 它在图中的位置，如果不显式指定，则默认添加在最开始的位置。</div>
<dl><dt><span class="strong">参数:</span></dt><dd><code>task</code> - 增加的<code>Task</code>对象.</dd>
<dt><span class="strong">返回:</span></dt><dd><code>Builder</code>对象，可以继续添加属性或者组装<code>Task</code>。</dd></dl>
</li>
</ul>
<a name="addNotWait(com.tmall.wireless.alpha.Task)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addNotWait</h4>
<pre>public&nbsp;<a href="../../../../com/tmall/wireless/alpha/Task.ProjectBuilder.html" title="com.tmall.wireless.alpha中的类">Task.ProjectBuilder</a>&nbsp;addNotWait(<a href="../../../../com/tmall/wireless/alpha/Task.html" title="com.tmall.wireless.alpha中的类">Task</a>&nbsp;task)</pre>
<div class="block">如果存在一个<code>Task</code>，他的执行情况并不影响整个<code>Project</code>的执行结果，即只要其他<code>Task</code>
 执行完了，就算他没有执行完，<code>Project</code>也算执行完成了。对于这类<code>Task</code>，可以调用该函数来添加。<br/>
 <strong>注意：<strong/>如果该<code>Task</code>后有紧后<code>Task</code>，则这个函数无效。即它只针对那些链路
 中末尾的<code>Task</code>生效。<br/></div>
<dl><dt><span class="strong">返回:</span></dt><dd><code>Builder</code>对象，可以继续添加属性或者组装<code>Task</code>。</dd></dl>
</li>
</ul>
<a name="after(com.tmall.wireless.alpha.Task)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>after</h4>
<pre>public&nbsp;<a href="../../../../com/tmall/wireless/alpha/Task.ProjectBuilder.html" title="com.tmall.wireless.alpha中的类">Task.ProjectBuilder</a>&nbsp;after(<a href="../../../../com/tmall/wireless/alpha/Task.html" title="com.tmall.wireless.alpha中的类">Task</a>&nbsp;task)</pre>
<div class="block">指定紧前<code>Task</code>，必须该<code>Task</code>执行完才能执行自己。如果不指定具体的紧前<code>Task</code>默认会最开始执行。</div>
<dl><dt><span class="strong">返回:</span></dt><dd><code>Builder</code>对象，可以继续添加属性或者组装<code>Task</code>。</dd></dl>
</li>
</ul>
<a name="after(com.alibaba.android.alpha.Task...)">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>after</h4>
<pre>public&nbsp;<a href="../../../../com/tmall/wireless/alpha/Task.ProjectBuilder.html" title="com.tmall.wireless.alpha中的类">Task.ProjectBuilder</a>&nbsp;after(<a href="../../../../com/tmall/wireless/alpha/Task.html" title="com.tmall.wireless.alpha中的类">Task</a>...&nbsp;tasks)</pre>
<div class="block">指定紧前<code>Task</code>，必须这些<code>Task</code>执行完才能执行自己。如果不指定具体的紧前<code>Task</code>默认会最开始执行。</div>
<dl><dt><span class="strong">返回:</span></dt><dd><code>Builder</code>对象，可以继续添加属性或者组装<code>Task</code>。</dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!--   -->
</a><a href="#skip-navbar_bottom" title="跳过导航链接"></a><a name="navbar_bottom_firstrow">
<!--   -->
</a>
<ul class="navList" title="导航">
<li><a href="../../../../com/tmall/wireless/alpha/package-summary.html">程序包</a></li>
<li class="navBarCell1Rev">类</li>
<li><a href="package-tree.html">树</a></li>
<li><a href="../../../../deprecated-list.html">已过时</a></li>
<li><a href="../../../../index-files/index-1.html">索引</a></li>
<li><a href="../../../../help-doc.html">帮助</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../com/tmall/wireless/alpha/Task.OnFinishedListener.html" title="com.tmall.wireless.alpha中的接口"><span class="strong">上一个类</span></a></li>
<li>下一个类</li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?com/tmall/wireless/alpha/Task.ProjectBuilder.html" target="_top">框架</a></li>
<li><a href="Task.ProjectBuilder.html" target="_top">无框架</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">所有类</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>概要:&nbsp;</li>
<li>嵌套&nbsp;|&nbsp;</li>
<li>字段&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">构造器</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">方法</a></li>
</ul>
<ul class="subNavList">
<li>详细资料:&nbsp;</li>
<li>字段&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">构造器</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">方法</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
